function getStudentList (params) {
    return $axios({
        url: '/student/page',
        method: 'get',
        params
    })
}

// 修改---启用禁用接口
function enableOrDisableStudent (params) {
    return $axios({
        url: '/student',
        method: 'put',
        data: { ...params }
    })
}


// 修改
function editStudent (params) {
    return $axios({
        url: '/student',
        method: 'put',
        data: { ...params }
    })
}

// 修改页面反查详情接口
function queryStudentById (id) {
    return $axios({
        url: `/student/${id}`,
        method: 'get'
    })
}

function getAllClazzName () {
    return $axios({
        url: '/clazz',
        method: 'get',
    })
}
function getAllChannelName () {
    return $axios({
        url: '/channel',
        method: 'get',
    })
}
//查看账户名
function getAllAccountName () {
    return $axios({
        url: '/account',
        method: 'get',
    })
}
//查看学生缴费情况   /accountFlow/student/{id}
function getStudentFlow (id) {
    return $axios({
        url: `/accountFlow/student/${id}`,
        method: 'get',
    })
}

function outputData (params) {
    return $axios({
        url: '/student/output',
        method: 'get',
        data: { ...params }
    })
}
//退款
function returnCount (params) {
    return $axios({
        url: `/student/returnMoney`,
        method: 'post',
        data:{ ...params }
    })
}
//退学 逻辑删除
function deletebyid (params) {
    return $axios({
        url: `/student/delete`,
        method: 'delete',
        data:{ ...params }
    })
}